package com.kk.mybatis;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @description:
 * @author: Kk
 * @create: 2020-11-27 11:07
 **/
@SpringBootApplication
@MapperScan(basePackages = "com.kk.mybatis.mapper")
//开启事务
@EnableTransactionManagement
public class MybatisApplication {
    public static void main(String[] args) {
        SpringApplication.run(MybatisApplication.class,args);
    }
}
